var z = '1000010000000009000000000000';
//前测试 后正式
var code = {
  mrjup: [
    ['catauto43108', 'catauto43106']//顶上按钮
  ],
  mrjindex0: [
    ['catauto44377', 'catauto44289'],//一屏大图
    ['catauto44429', 'catauto44290'],//一屏右二竖图
    ['catauto44331', 'catauto43124'],//一屏三横图
    ['catauto44378', 'catauto43170'],//一屏底部五竖图
    ['catauto44332', 'catauto44291'],//重磅上线
    ['catauto44432', 'catauto43172'],//在家练瑜伽
    ['catauto44334', 'catauto44293'],
    ['catauto44433', 'catauto43127'],//健身时光:3横图
    ['catauto44434', 'catauto44294'],//4竖图
    ['catauto44380', 'catauto43128'],//后天美人养成记：三横图
    ['catauto44335', 'catauto43173'],//后天美人养成记：六竖图
    ['catauto44379', 'catauto43126'],
    ['catauto44430', 'catauto43125'],//栏目info6
    ['catauto44431', 'catauto43171'],//栏目info8
    ['catauto44333', 'catauto44292']//栏目info10
  ],
  mrjse1: [//瑜伽馆
    ['catauto44435', 'catauto44370'],//左竖1
    ['catauto44436', 'catauto44321'],//一屏右4
    ['catauto44338', 'catauto44422'],//二屏5个
    ['catauto44386', 'catauto44322'],//三屏9个
    ['catauto44440', 'catauto44371'],//四屏5个
    ['catauto44341', 'catauto44323']//五屏9个
  ],
  mrjse2: [//乐舞室
    ['catauto44381', 'catauto44324'],//左竖1
    ['catauto44337', 'catauto44421'],//一屏右4
    ['catauto44384', 'catauto44325'],//二屏5个
    ['catauto44339', 'catauto44372'],//三屏9个
    ['catauto44388', 'catauto44423'],//四屏5个
    ['catauto44442', 'catauto44326']//五屏9个
  ],
  mrjse3: [//塑身房
    ['catauto44336', 'catauto44424'],//左竖1
    ['catauto44383', 'catauto44327'],//一屏右4
    ['catauto44437', 'catauto44374'],//二屏5个
    ['catauto44387', 'catauto44328'],//三屏9个
    ['catauto44340', 'catauto44373'],//四屏5个
    ['catauto44441', 'catauto44425']//五屏9个
  ],
  mrjse4: [//美丽说
    ['catauto44382', 'catauto44375'],//左竖1
    ['catauto44438', 'catauto44426'],//一屏右4
    ['catauto44385', 'catauto44376'],//二屏5个
    ['catauto44439', 'catauto44427'],//三屏9个
    ['catauto44389', 'catauto44330'],//四屏5个
    ['catauto44342', 'catauto44329']//五屏9个
  ]
};
var getCode = function(key) {
  var isDev = localStorage.getItem('DEV') === 'G+TV';
  var rcode = code[key.split('_')[0]][key.split('_')[1]][isDev ? 0 : 1];
  if (rcode.toString().length == 4) {
    return z + code[key.split('_')[0]][key.split('_')[1]][isDev ? 0 : 1];
  } else {
    return code[key.split('_')[0]][key.split('_')[1]][isDev ? 0 : 1];
  }
};

